using System;
using System.Collections.Generic;
using System.Text;

namespace GoogleNet
{
    /// <summary>
    /// This is an abstract element and cannot be used directly in a KML file. 
    /// This element is extended by the TimeSpan and TimeStamp elements. 
    /// </summary>
    public class KmlTimePrimitive : KmlObject, IKmlElement
    {
        private string tagName = "TimePrimitive";

        #region IKmlElement Members

        /// <summary>
        /// Name of the KML tag for this specific element.
        /// </summary>
        /// <value></value>
        /// <returns></returns>
        public virtual string TagName
        {
            get { return tagName; }
        }

        #endregion

        #region IKmlGenerator Members

        /// <summary>
        /// Generates the KML for this element including its child elements.
        /// </summary>
        /// <param name="writer">The XML writer that will be used to generate the KML.</param>
        public virtual void GenerateKml(System.Xml.XmlTextWriter writer)
        {
            writer.WriteAttributeString("id", ID);
        }

        #endregion
    }
}
